<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		include_once 'public/home/html/laydate.php';
		?>
		<?php
		include_once 'public/home/html/faltSelect.php';
		?>
		<link rel="stylesheet" href="public/css/edit.css" />
		<script src="cust/js/attendEdit.js"></script>
		<script src="public/js/cus_modal.js"></script>
		<style>
			body{
				overflow-x: hidden;
        padding-left: 10%;
        background: #fff;
			}
			.required{
				min-width:80px;
			}
            table{
                border:1px solid #000;/*黑色1像素粗边框*/
            }
            td{width: 160px}
            .border_bottom{
              border-bottom:1px solid #000;
            }

		</style>
	</head>
	<body>
        <div>
            <div   >
               <table  style="width: 740px;height: 905px;">
                   <tr>
                       <td colspan="2" >
                           浙江职业技术学院
                       </td>
                       <td style="text-align: right">
                       </td>
                       <td style="text-align: center">
                           <!-- <?php if(isset($detail['attend']['serial_no'])){echo $detail['attend']['serial_no'];} ?> -->
                       </td>

                   </tr>
                   <tr>
                       <td colspan="4" style="text-align: center">
                           <h3 style="letter-spacing: 20px;margin-bottom: 0px"><strong>督导听课评价表</strong></h3>
                       </td>

                   </tr>
                   <tr>

                       <td colspan="4" style="text-align: center">
                           <span class='border_bottom'>
                             <?php if(isset($detail['attend']['academic_year'])){echo $detail['attend']['academic_year'];} ?>学年<?php echo $detail['attend']['semester']?>
                           </span>
                       </td>

                   </tr>
                   <tr>
                       <td  style="text-align: right">
                           <div style="height: 50px"></div>
                           课程名称:
                       </td>
                       <td style="text-align: center;">
                           <div style="height: 50px"></div>
                           <div class='border_bottom'><?php if(isset($detail['attend']['class_name'])){echo  $detail['attend']['class_name'];}?></div>
                       </td>
                       <td colspan="2">
                           <div style="height: 50px"></div>
                           <!-- <?php 
                              foreach ((new CourseName)->getAll() as $k => $v) {
                                $checked="";
                                if($v[XPHEnum::Caption]==$detail['attend']['class_type']){
                                  $checked="checked";
                                }
                                echo "<input type='checkbox' name='age_groups' onclick='return false' ".$checked.">".$v[XPHEnum::Caption];
                              }
                            ?> -->
                            <?php
                              foreach ($courseType as $k => $v) {
                                $checked="";
                                if($v['option']==$detail['attend']['class_type']){
                                  $checked="checked";
                                }
                                echo "<input type='checkbox' name='age_groups' onclick='return false' ".$checked.">".$v['option'];
                              }
                            ?>                          
                       </td>
                   </tr>
                   <tr>
                       <td style="text-align: right">
                           授课教师:
                       </td>
                       <td style="text-align: center">
                           <div class="border_bottom"><?php if(isset($detail['attend']['teacher_name'])){echo $detail['attend']['teacher_name'];} ?><div>
                       </td>
                       <td colspan="2">
                           职称:                        

                           <?php 
                              foreach ((new Title)->getAll() as $k => $v) {
                                $checked="";
                                if($v[XPHEnum::Caption]==$detail['attend']['title']){
                                  $checked="checked";
                                }
                                echo "<input type='checkbox' name='title' onclick='return false' ".$checked.">".$v[XPHEnum::Caption];
                              }
                            ?>
                       </td>

                   </tr>
                   <tr  >
                       <td  style="text-align: right" >
                           所属二级学院（部）:
                       </td>
                       <td style="text-align: center;" >
                        <div class="border_bottom"><?php if(isset($detail['attend']['dept_name'])){echo $detail['attend']['dept_name'];} ?></div>
                       </td>
                      <td colspan="2">
                           年龄层次：
                           <?php 
                              foreach ((new AgeGroups)->getAll() as $k => $v) {
                                $checked="";
                                if($v[XPHEnum::Caption]==$detail['attend']['age_groups']){
                                  $checked="checked";
                                }
                                echo "<input type='checkbox' name='age_groups' onclick='return false' ".$checked.">".$v[XPHEnum::Caption];
                              }
                            ?>
                       </td>

                   </tr>
                   <tr>
                       <td colspan="4" style="text-align: center">
                           教师属性：   
                           <?php 
                              foreach ((new TeachersAttribute)->getAll() as $k => $v) {
                                $checked="";
                                if($v[XPHEnum::Caption]==$detail['attend']['teachers_attribute']){
                                  $checked="checked";
                                }
                                echo "<input type='checkbox' name='age_groups' onclick='return false' ".$checked.">".$v[XPHEnum::Caption];
                              }
                            ?>
                       </td>
                   </tr>
                   <tr>
                       <td></td>
                       <td  style="text-align: right;font-size: large">
                           <div style="height: 80px"></div>
                           听课教师：&nbsp;
                       </td>
                       <td style="text-align: center;font-size: large">
                           <div style="height: 80px"></div>
                           <div class="border_bottom"><?php if(isset($detail['attend']['listen_name'])){echo $detail['attend']['listen_name'];} ?></div>
                       </td>
                       <td></td>
                   </tr>
                   <tr>
                       <td></td>
                       <td  style="text-align: right;font-size: large">
                           听课时间：&nbsp;
                       </td>
                       <td style="text-align: center;font-size: large">
                           <div class='border_bottom'><?php if(isset($detail['attend']['listen_time'])){echo date('Y-m-d ', $detail['attend']['listen_time']);}?></div>
                       </td>
                       <td></td>
                   </tr>
                   <tr>
                       <td></td>
                       <td  style="text-align: right;font-size: large">
                           听课地点：
                       </td>
                       <td style="text-align: center;font-size: large">
                           <div class='border_bottom'><?php if(isset($detail['attend']['listen_address'])){echo $detail['attend']['listen_address'];} ?></div>
                       </td>
                       <td></td>
                   </tr>
                   <tr>
                       <td></td>
                       <td  style="text-align: right;font-size: large">
                           开课单位：
                       </td>
                       <td style="text-align: center;font-size: large">
                           <div class='border_bottom'><?php if(isset($detail['attend']['course_units'])){echo $detail['attend']['course_units'];} ?></div>
                       </td>
                       <td></td>
                   </tr>
                   <tr>
                       <td></td>
                       <td  style="text-align: right;font-size: large">
                           听课班级：
                       </td>
                       <td style="text-align: center;font-size: large">
                           <div class='border_bottom'><?php if(isset($detail['attend']['listen_class'])){echo $detail['attend']['listen_class'];} ?></div>
                       </td>
                       <td></td>
                   </tr>
                   <tr>
                       <td colspan="4" style="text-align: center">
                           <div style="height: 50px"></div>
                           <h4 style="margin-bottom: 0px"><strong>质量监督办/督导处</strong></h4>
                       </td>
                   </tr>
               </table>
            </div>
            <div style="margin-top: 55px;" >
                <table  style="width: 740px;height: 540px;margin-top: -6px;border=1px;border: 1px solid#000;border-collapse: collapse;" class="table-condensed">
                    <tr s>
                        <td colspan="10" style="text-align: center;width: 25px;border: 1px solid #000;border-collapse: collapse;">
                            <strong>教师教学水平与教学效果评价</strong>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: center;height: 7%;width: 7%;border: 1px solid#000;border-collapse: collapse;">
                            评价<br/>项目
                        </td>
                        <td colspan="5" style="text-align: center;width: 58%;border: 1px solid#000;border-collapse: collapse;">评价内容</td>
                        <td style="text-align: center;width: 10%;border: 1px solid#000;border-collapse: collapse;">分值</td>
                        <td style="text-align: center;width: 10%;border: 1px solid#000;border-collapse: collapse;">得分</td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;">小计</td>
                    </tr>
                    <tr style="height: 10px;border: 1px solid#000;border-collapse: collapse;" >
                        <td rowspan="3" style="height: 15%;border: 1px solid#000;border-collapse: collapse;">教学内容（30分）</td>
                        <td colspan="5" style=" height: 25px;font-size:xx-small;text-align: left;border: 1px solid#000;border-collapse: collapse;"><?php echo TeachingContent::First[XPHEnum::Value].".".$detail['attend_teaching_content']['0']['content']?></td>
                        <td style="text-align: center;height: 25px;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_content']['0']['score']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_teaching_content']['0']['get_score'])){echo $detail['attend_teaching_content']['0']['get_score'];} ?></td>
                        <td rowspan="3" style="text-align: center;border: 1px solid#000;border-collapse: collapse;">
                            <?php echo $detail['attend_teaching_content']['0']['get_score']+$detail['attend_teaching_content']['1']['get_score']+$detail['attend_teaching_content']['2']['get_score']?>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" style="font-size: xx-small;"><?php echo TeachingContent::Second[XPHEnum::Value].".".$detail['attend_teaching_content']['1']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_content']['1']['score']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;">
                            <?php if(isset($detail['attend_teaching_content']['1']['get_score'])){echo $detail['attend_teaching_content']['1']['get_score'];} ?>
                        </td>

                    </tr>
                    <tr>
                        <td colspan="5" style="font-size: xx-small;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_content']['2']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_content']['2']['score']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_teaching_content']['2']['get_score'])){echo $detail['attend_teaching_content']['2']['get_score'];} ?></td>

                    </tr>
                    <tr>
                        <td rowspan="6">教学实施（70分）</td>
                        <td colspan="5" style="font-size:xx-small;border: 1px solid#000;border-collapse: collapse;";><?php echo TeachingImplementation::First[XPHEnum::Value].".".$detail['attend_teaching_implementation']['0']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_implementation']['0']['score']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_teaching_implementation']['0']['get_score'])){echo $detail['attend_teaching_implementation']['0']['get_score'];} ?></td>
                        <td rowspan="6" style="text-align: center;border: 1px solid#000;border-collapse: collapse;">
                            <?php echo $detail['attend_teaching_implementation']['0']['get_score']+$detail['attend_teaching_implementation']['1']['get_score']+$detail['attend_teaching_implementation']['2']['get_score']+$detail['attend_teaching_implementation']['3']['get_score']+$detail['attend_teaching_implementation']['4']['get_score']+$detail['attend_teaching_implementation']['5']['get_score']?>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" style="font-size:xx-small;border: 1px solid#000;border-collapse: collapse;"><?php echo TeachingImplementation::Second[XPHEnum::Value].".".$detail['attend_teaching_implementation']['1']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_implementation']['1']['score']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_teaching_implementation']['1']['get_score'])){echo $detail['attend_teaching_implementation']['1']['get_score'];} ?></td>

                    </tr>
                    <tr>
                        <td colspan="5" style="font-size:xx-small;border: 1px solid#000;border-collapse: collapse;"><?php $detail['attend_teaching_implementation']['2']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_implementation']['2']['score']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_teaching_implementation']['2']['get_score'])){echo $detail['attend_teaching_implementation']['2']['get_score'];} ?></td>

                    </tr>
                    <tr>
                        <td colspan="5" style="font-size:xx-small;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_implementation']['3']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo$detail['attend_teaching_implementation']['3']['score']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_teaching_implementation']['3']['get_score'])){echo $detail['attend_teaching_implementation']['3']['get_score'];} ?></td>

                    </tr>
                    <tr>
                        <td colspan="5" style="font-size:x-small;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_implementation']['4']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo$detail['attend_teaching_implementation']['4']['score']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_teaching_implementation']['4']['get_score'])){echo $detail['attend_teaching_implementation']['4']['get_score'];} ?></td>

                    </tr>
                    <tr>
                        <td colspan="5" style="font-size:xx-small;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_implementation']['5']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_implementation']['5']['score']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_teaching_implementation']['5']['get_score'])){echo $detail['attend_teaching_implementation']['5']['get_score'];} ?></td>

                    </tr>
                    <tr >
                        <td colspan="2" rowspan="2" style="width: 15%;border: 1px solid#000;border-collapse: collapse;">
                            <strong>教学水平总体评价（打√）</strong>
                        </td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_level']['0']['item']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_level']['1']['item']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_level']['2']['item']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_level']['3']['item']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_level']['4']['item']?></td>
                        <td rowspan="2" style="text-align: center;border: 1px solid#000;border-collapse: collapse;">合计</td>
                        <td  rowspan="2" style="text-align: center;border: 1px solid#000;border-collapse: collapse;">
                            <?php
                            if($detail['attend']['teaching_level_score']>=90){
                                echo "A";
                            }
                            else if($detail['attend']['teaching_level_score']>=80 && $detail['attend']['teaching_level_score']<90){
                                echo "B";
                            }
                            else if($detail['attend']['teaching_level_score']>=70 && $detail['attend']['teaching_level_score']<80){
                                echo "C";
                            }
                            else if($detail['attend']['teaching_level_score']>=60 && $detail['attend']['teaching_level_score']<70){
                                echo "D";
                            }
                            else {
                                echo "E";
                            }
                            ?>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_level']['0']['remark']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_level']['1']['remark']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_level']['2']['remark']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_level']['3']['remark']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_level']['4']['remark']?></td>
                    </tr>
                    <tr>
                        <td rowspan="6" style="border: 1px solid#000;border-collapse: collapse;">学生状况（100分）</td>
                        <td colspan="5" style="font-size: xx-small;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['0']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['0']['score']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_student_status']['0']['get_score'])){echo $detail['attend_student_status']['0']['get_score'];} ?></td>
                        <td rowspan="6" style="text-align: center;border: 1px solid#000;border-collapse: collapse;">
                            <?php echo $detail['attend_student_status']['0']['get_score']+$detail['attend_student_status']['1']['get_score']+$detail['attend_student_status']['2']['get_score']+$detail['attend_student_status']['3']['get_score']+$detail['attend_student_status']['4']['get_score']+$detail['attend_student_status']['5']['get_score']?>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" style="font-size: xx-small;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['1']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['1']['score']?></td>
                        <td  style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_student_status']['1']['get_score'])){echo $detail['attend_student_status']['1']['get_score'];} ?></td>
                    </tr>
                    <tr>
                        <td colspan="5" style="font-size: xx-small;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['2']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['2']['score']?></td>
                        <td  style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_student_status']['2']['get_score'])){echo $detail['attend_student_status']['2']['get_score'];} ?></td>
                    </tr>
                    <tr>
                        <td colspan="5" style="font-size: xx-small;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['3']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['3']['score']?></td>
                        <td  style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_student_status']['3']['get_score'])){echo $detail['attend_student_status']['3']['get_score'];} ?></td>
                    </tr>
                    <tr>
                        <td colspan="5" style="font-size: xx-small;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['4']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['4']['score']?></td>
                        <td  style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_student_status']['4']['get_score'])){echo $detail['attend_student_status']['4']['get_score'];} ?></td>
                    </tr>
                    <tr>
                        <td colspan="5" style="font-size: xx-small;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['5']['content']?></td>
                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_student_status']['5']['score']?></td>
                        <td  style="text-align: center;border: 1px solid#000;border-collapse: collapse;"><?php if(isset($detail['attend_student_status']['5']['get_score'])){echo $detail['attend_student_status']['5']['get_score'];} ?></td>
                    </tr>
                    <tr >
                        <td colspan="2" rowspan="2" style="width: 15%;border: 1px solid#000;border-collapse: collapse;">
                            <strong>教学效果总体评价（打√）</strong>
                        </td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_effect']['0']['item']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_effect']['1']['item']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_effect']['2']['item']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_effect']['3']['item']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_effect']['4']['item']?></td>
                        <td rowspan="2" style="text-align: center;border: 1px solid#000;border-collapse: collapse;">合计</td>
                        <td  rowspan="2" style="text-align: center;border: 1px solid#000;border-collapse: collapse;">
                            <?php
                            if($detail['attend']['teaching_effect_score']>=90){
                                echo "A";
                            }
                            else if($detail['attend']['teaching_effect_score']>=80 && $detail['attend']['teaching_effect_score']<90){
                                echo "B";
                            }
                            else if($detail['attend']['teaching_effect_score']>=70 && $detail['attend']['teaching_effect_score']<80){
                                echo "C";
                            }
                            else if($detail['attend']['teaching_effect_score']>=60 && $detail['attend']['teaching_effect_score']<70){
                                echo "D";
                            }
                            else {
                                echo "E";
                            }
                            ?>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_effect']['0']['remark']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_effect']['1']['remark']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_effect']['2']['remark']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_effect']['3']['remark']?></td>
                        <td style="text-align:center;border: 1px solid#000;border-collapse: collapse;"><?php echo $detail['attend_teaching_effect']['4']['remark']?></td>
                    </tr>
                </table>
                <table  style="width: 740px;height: 365px;margin-top: 0px;border: 1px solid#000;border-collapse: collapse;">

                     <tr>
                        <td rowspan="4" style="text-align: center;border: 1px solid#000;border-collapse: collapse;">教学准备开展情况</td>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                            <?php 
                                echo $detail['attend_teaching_readiness']['0']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['0']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['0']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                        <td colspan="3" style="text-align: left;">
                          <?php 
                                echo $detail['attend_teaching_readiness']['1']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['1']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['1']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                          <?php 
                                echo $detail['attend_teaching_readiness']['2']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['2']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['2']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                            <?php 
                                echo $detail['attend_teaching_readiness']['3']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['3']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['3']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                            <?php 
                                echo $detail['attend_teaching_readiness']['4']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['4']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['4']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                            <?php 
                                echo $detail['attend_teaching_readiness']['5']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['5']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['5']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                            <?php 
                                echo $detail['attend_teaching_readiness']['6']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['6']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['6']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                            <?php 
                                echo $detail['attend_teaching_readiness']['7']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['7']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['7']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                            <?php 
                                echo $detail['attend_teaching_readiness']['8']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['8']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['8']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                           <?php 
                                echo $detail['attend_teaching_readiness']['9']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['9']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['9']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                            <?php 
                                echo $detail['attend_teaching_readiness']['10']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['10']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['10']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                        <td colspan="3" style="text-align: left;border: 1px solid#000;border-collapse: collapse;">
                            <?php 
                                echo $detail['attend_teaching_readiness']['11']['item'];
                                $item = explode(",",$detail['attend_teaching_readiness']['11']['option']);
                                foreach ($item as $k => $v) {
                                  $checked="";
                                   if($detail['attend_teaching_readiness']['11']['check_value']==$v){
                                    $checked="checked";
                                   }
                                   echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                                }
                             ?>
                        </td>
                    </tr>
                    <tr>
                        <td rowspan="2" style="border: 1px solid#000;border-collapse: collapse;">学生常态</td>
                        <td colspan="3" style="font-size: xx-small;border: 1px solid#000;border-collapse: collapse;">
                            <?php echo $detail['attend_students_norm'][0]['item']."/".$detail['attend_students_norm'][1]['item'] ?>
                            <?php if(isset($detail['attend_students_norm'][0]['check_value'])){echo $detail['attend_students_norm'][0]['check_value'];} ?>/
                            <?php if(isset($detail['attend_students_norm'][1]['check_value'])){echo $detail['attend_students_norm'][1]['check_value'];} ?>
                        </td>
                        <td colspan="3" style="font-size: xx-small;border: 1px solid#000;border-collapse: collapse;">
                            <?php echo $detail['attend_students_norm'][2]['item']."/".$detail['attend_students_norm'][3]['item'] ?>
                            <?php if(isset($detail['attend_students_norm'][2]['check_value'])){echo $detail['attend_students_norm'][2]['check_value'];} ?>/
                            <?php if(isset($detail['attend_students_norm'][3]['check_value'])){echo $detail['attend_students_norm'][3]['check_value'];} ?>
                        </td>
                        <td colspan="3" style="font-size: xx-small;border: 1px solid#000;border-collapse: collapse;">
                            <?php echo $detail['attend_students_norm'][4]['item'] ?>
                            <?php if(isset($detail['attend_students_norm'][4]['check_value'])){echo $detail['attend_students_norm'][4]['check_value'];} ?>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" style="border: 1px solid#000;border-collapse: collapse;">
                            <?php echo $detail['attend_students_norm'][5]['item'] ?>
                            <?php if(isset($detail['attend_students_norm'][5]['check_value'])){echo $detail['attend_students_norm'][5]['check_value'];} ?>
                        </td>
                        <td colspan="3" style="border: 1px solid#000;border-collapse: collapse;">
                             <?php echo $detail['attend_students_norm'][6]['item']."/".$detail['attend_students_norm'][7]['item'] ?>
                            <?php if(isset($detail['attend_students_norm'][6]['check_value'])){echo $detail['attend_students_norm'][6]['check_value'];} ?>/
                            <?php if(isset($detail['attend_students_norm'][7]['check_value'])){echo $detail['attend_students_norm'][7]['check_value'];} ?>
                        </td>
                        <td colspan="3" style="border: 1px solid#000;border-collapse: collapse;">
                            <?php echo $detail['attend_students_norm'][8]['item'] ?>
                            <?php if(isset($detail['attend_students_norm'][8]['check_value'])){echo $detail['attend_students_norm'][8]['check_value'];} ?>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center;border: 1px solid#000;border-collapse: collapse;">课堂设施设备完好情况</td>
                        <td colspan="8" style="border: 1px solid#000;border-collapse: collapse;">
                          <?php 
                              $item = explode(",",$detail['attend_classroom_facilities']['option']);
                              foreach ($item as $k => $v) {
                                $checked="";
                                 if($detail['attend_classroom_facilities']['check_value']==$v){
                                  $checked="checked";
                                 }
                                 echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                              }
                           ?>
                        </td>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center;border: 1px solid#000;border-collapse: collapse;">课堂环境卫生情况</td>
                        <td colspan="8" style="border: 1px solid#000;border-collapse: collapse;">
                          <?php 
                              $item = explode(",",$detail['attend_classroom_environmental']['option']);
                              foreach ($item as $k => $v) {
                                $checked="";
                                 if($detail['attend_classroom_environmental']['check_value']==$v){
                                  $checked="checked";
                                 }
                                 echo "<input type='checkbox' name='class_criterion' onclick='return false' ".$checked.">".$v;
                              }
                           ?>
                        </td>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 10%;text-align: center;border: 1px solid#000;border-collapse: collapse;" >听课教师意见或建议</td>
                        <td colspan="9" style="border: 1px solid#000;border-collapse: collapse;">
                            <?php if(isset($detail['attend']['advice'])){echo $detail['attend']['advice'];} ?>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="float: left">
                <table class='edit_table' style="width: 740px;height: 905px;border: 1px solid#000;border-collapse: collapse;">
                    <tr style="height: 5%;border: 1px solid#000;border-collapse: collapse;">
                        <td colspan="2" style=" border: 1px solid#000;border-collapse: collapse;" >
                            <h5><strong>听课内容记录 照片（附件）</strong></h5>
                            （包括教学内容、教学过程、教学组织、各环节时间、学生反应情况等）
                        </td>
                    </tr>
                    <!-- <tr style="height: 3%;border: 1px solid#000;border-collapse: collapse;"> -->
                        <!-- <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;">时间</td> -->
                        <!-- <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;">教学活动</td> -->
                        <!-- <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;">听课记录</td> -->
                    <!-- </tr> -->
                     <!-- <?php 
                       foreach ($detail['attend_record'] as $k => $v) {
                         echo "<tr>
                       <td style='border-left: 1px solid#000;border-right: 1px solid#000;border-collapse: collapse;text-align:center'>
                          ".$v['time']."
                       </td>                      
                       <td style='border-left: 1px solid#000;border-right: 1px solid#000;border-collapse: collapse;text-align:center'>
                        ".$v['commentary']."
                       </td>
                   </tr>";
                       }
                      ?> -->
                      <tr style="height: 100%;">
                        <td colspan="2" valign="top">
                          <div style="margin: 2%">
                            <div>
                              时间： <?php echo $detail['attend_record'][0]['time']; ?>
                            </div>
                            <div style="margin-top: 3%">
                              听课记录：<br>
                              <p style="text-indent:25px">
                               <?php echo  $detail['attend_record'][0]['commentary']; ?>
                              </p>
                            </div>
                            <div>
                              <?php 
                                if(isset($detail['attend_img'])){
                                  foreach ($detail['attend_img'] as $k => $v) {
                                    echo "<img src='".$v['img']."' style='width:500px'>";
                                  }
                                }
                               ?>
                            </div>
                          </div>
                        </td>
                      </tr>
<!-- 
                      <tr style="height: 100%;">
                      <td style="border-left: 1px solid#000;border-right: 1px solid#000;border-bottom: 1px solid#000;border-collapse: collapse;"></td>
                      <td style="border-left: 1px solid#000;border-right: 1px solid#000;border-bottom: 1px solid#000;border-collapse: collapse;"></td> -->
                      
                    <!-- </tr> -->
                </table>
            </div>

<!--            <div style="float: left">-->
<!--                <table class='edit_table' style="width: 640px;height: 905px;margin-left: 100px;border: 1px solid#000;border-collapse: collapse;">-->
<!--                    <tr style="height: 3%;border: 1px solid#000;border-collapse: collapse;">-->
<!--                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;">时间</td>-->
<!--                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;">教学活动</td>-->
<!--                        <td style="text-align: center;border: 1px solid#000;border-collapse: collapse;">随堂评注</td>-->
<!--                    </tr>-->
<!--                    <tr style="height: 97%;border: 1px solid#000;border-collapse: collapse;">-->
<!--                        <td style="border: 1px solid#000;border-collapse: collapse;">-->
<!--                            <textarea style="width: 100%;height: 100%;" readonly></textarea>-->
<!--                        </td>-->
<!--                        <td style="border: 1px solid#000;border-collapse: collapse;">-->
<!--                            <textarea style="width: 100%;height: 100%;" readonly></textarea>-->
<!--                        </td>-->
<!--                        <td style="border: 1px solid#000;border-collapse: collapse;">-->
<!--                            <textarea style="width: 100%;height: 100%;" readonly></textarea>-->
<!--                        </td>-->
<!--                    </tr>-->
<!--                </table>-->
<!--            </div>-->
        </div>
	</body>
	<script type="text/javascript">

</script>
</html>
